package com.snack.system.service.impl;

import com.snack.system.domain.TsSpecial;
import com.snack.system.mapper.TsSpecialMapper;
import com.snack.system.service.ITsSpecialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 今日特价Service业务层处理
 * 
 * @author snack
 * @date 2022-09-18
 */
@Service
public class TsSpecialServiceImpl implements ITsSpecialService 
{
    @Autowired
    private TsSpecialMapper specialMapper;

    /**
     * 查询今日特价
     * 
     * @param specialId 今日特价主键
     * @return 今日特价
     */
    @Override
    public TsSpecial selectById(Long specialId)
    {
        return specialMapper.selectById(specialId);
    }

    /**
     * 查询今日特价列表
     * 
     * @param special 今日特价
     * @return 今日特价
     */
    @Override
    public List<TsSpecial> selectList(TsSpecial special)
    {
        return specialMapper.selectList(special);
    }

    /**
     * 新增今日特价
     * 
     * @param special 今日特价
     * @return 结果
     */
    @Override
    public int insert(TsSpecial special)
    {
        return specialMapper.insert(special);
    }

    /**
     * 修改今日特价
     * 
     * @param special 今日特价
     * @return 结果
     */
    @Override
    public int update(TsSpecial special)
    {
        return specialMapper.update(special);
    }

    /**
     * 批量删除今日特价
     * 
     * @param specialIds 需要删除的今日特价主键
     * @return 结果
     */
    @Override
    public int deleteByIds(Long[] specialIds)
    {
        return specialMapper.deleteByIds(specialIds);
    }

}
